lectures.alex.balgavy.eu

Lecture notes from university.
git clone git://git.alex.balgavy.eu/lectures.alex.balgavy.eu.git
Log | Files | Refs | Submodules

Addressing modes.html (2068B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3 <html><head><link rel="stylesheet" href="sitewide.css" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content="Evernote Mac 6.13.1 (455785)"/><meta name="altitude" content="-0.3418765664100647"/><meta name="author" content="Alex Balgavy"/><meta name="created" content="2017-12-11 6:41:09 PM +0000"/><meta name="latitude" content="52.3736617734729"/><meta name="longitude" content="4.836225185090218"/><meta name="source" content="desktop.mac"/><meta name="updated" content="2017-12-11 10:40:42 PM +0000"/><title>Addressing modes</title></head><body><div>addressing modes: ways of specifying locations of instruction operands</div><div><br/></div><div>Summary of RISC-type addressing modes:</div><div><br/></div><div><img src="Addressing%20modes.resources/screenshot.png" height="354" width="629"/><br/></div><div><br/></div><div><br/></div><div><span style="font-weight: bold;">Modes</span></div><div><div>Provide operand/address explicitly:</div><ul><li>Register — operand is contents of processor register, name of register is given in instruction</li><li>Absolute — operand is in memory location, address of location is given in instruction</li><li>Immediate — operand is given explicitly in instruction (use <span style="font-style: italic;"># </span>or <span style="font-style: italic;">$ </span>to indicate that it is an immediate operand)</li></ul><div><br/></div></div><div>Provide information from effective address:</div><div><ul><li>Indirect — effective address of operand is in register, register is given in instruction (pointer-type). use parentheses ()</li><li>Index — effective address of operand is generated by adding a constant to contents of register</li></ul></div><div><br/></div><div>when specifying an offset in index, the offset can be either positive or negative. means the number of bytes to move.</div></body></html>